const routers = [
  //首页
  {
    path: '/',
    component: function (resolve) {
      require(['./view/Index.vue'], resolve)
    }
  },
  //个人中心首页
  {
    path: '/BaiFenCenter',
    component: function (resolve) {
      require(['./view/BaiFenCenter.vue'], resolve)
    }
  },
  //分期付款计划
  {
    path: '/StagesPlan/:id',
    component: function (resolve) {
      require(['./view/StagesPlan.vue'], resolve)
    }
  },
  //报价列表
  {
    path: '/OfferList',
    component: function (resolve) {
      require(['./view/OfferList.vue'], resolve)
    }
  },
  //账单详情（已完成）
  {
    path: '/BillDetails',
    component: function (resolve) {
      require(['./view/BillDetails.vue'], resolve)
    }
  },
  //保费报价
  {
    path: '/CarQuote/:id',
    component: function (resolve) {
      require(['./view/CarQuote.vue'], resolve)
    }
  },
  //提交投保信息
  {
    path: '/InsuranceInfor/:id',
    component: function (resolve) {
      require(['./view/InsuranceInfor.vue'], resolve)
    }
  },
  //订单详情
  {
    path: '/OrderDetail/:id/:cd',
    component: function (resolve) {
      require(['./view/OrderDetail.vue'], resolve)
    }
  },
  //查看保险证书
  {
    path: '/Agreement',
    component: function (resolve) {
      require(['./view/Agreement.vue'], resolve)
    }
  },
  //查看电子凭证
  {
    path: '/Voucher/:id/:who/:count',
    component: function (resolve) {
      require(['./view/Voucher.vue'], resolve)
    }
  },
  //查看电子凭证2
  {
    path: '/VoucherPhoto/:id/:who/:count',
    component: function (resolve) {
      require(['./view/VoucherPhoto.vue'], resolve)
    }
  },
  //我要报价
  {
    path: '/Offer/:InsuranceID/:InsuranceName',
    component: function (resolve) {
      require(['./view/Offer.vue'], resolve)
    }
  },
  //绑定
  {
    path: '/Binding',
    component: function (resolve) {
      require(['./view/Binding.vue'], resolve)
    }
  },
  //选择保险公司
  {
    path: '/InsuName/:type',
    component: function (resolve) {
      require(['./view/InsuName.vue'], resolve)
    }
  },
  //支付订单 
  {
    path: '/FQPay/:id/:number',
    component: function (resolve) {
      require(['./view/PaymentOrder.vue'], resolve)
    }
  },
  //保单 
  {
    path: '/FQPol',
    component: function (resolve) {
      require(['./view/Policy.vue'], resolve)
    }
  },
  //保单详情
  {
    path: '/FQDet/:id/:number/:who',
    component: function (resolve) {
      require(['./view/DetailsOfPolicy.vue'], resolve)
    }
  },
  //修改密码
  {
    path: '/ChangePwd',
    component: function (resolve) {
      require(['./view/ChangePwd.vue'], resolve)
    }
  },
  //等待报价
  {
    path: '/WaitFor',
    component: function (resolve) {
      require(['./view/WaitForAnOffer.vue'], resolve)
    }
  },
  //单保交强险
  {
    path: '/Single/:id/:name',
    component: function (resolve) {
      require(['./view/Single.vue'], resolve)
    }
  },
  //单保交强险提交详情页
  {
    path: '/SingleOrder/:id',
    component: function (resolve) {
      require(['./view/SingleNext.vue'], resolve)
    }
  },
  //代理商认证
  {
    path: '/Agent/',
    component: function (resolve) {
      require(['./view/AgentAuthentication.vue'], resolve)
    }
  },
  //我是代理商
  {
    path: '/IAmAgent/',
    component: function (resolve) {
      require(['./view/IAmAgent.vue'], resolve)
    }
  },
  //我的推荐
  {
    path: '/Recommendation/',
    component: function (resolve) {
      require(['./view/Recommendation.vue'], resolve)
    }
  },
  //提现明细
  {
    path: '/PresentRecord/',
    component: function (resolve) {
      require(['./view/PresentRecord.vue'], resolve)
    }
  },
  //提现
  {
    path: '/apply',
    component: function (resolve) {
      require(['./view/Apply.vue'], resolve)
    }
  },
  //资金明细
  {
    path: '/AccountList',
    component: function (resolve) {
      require(['./view/AccountList.vue'], resolve)
    }
  },
  //首页banner详情
  {
    path: '/BannerDetails/:id',
    component: function (resolve) {
      require(['./view/BannerDetails.vue'], resolve)
    }
  },
  {
    path:'/PolicyPhoto/:id',
    component: function (resolve) {
      require(['./view/PolicyPhoto.vue'], resolve)
    }
  }
  
]
export default routers
